package cn.lixu.sentne;

import cn.lixu.domain.User;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author LiXu
 * @date 2022/08/23 0023 18:11:06
 * 降级类
 */

public interface FuseDowngradeUtil {

    public static User orderFallback(@PathVariable("id") Long id, Throwable e) {
        e.printStackTrace();
        return new User(-1L, "熔断降级", "您的服务已经被熔断，请稍候再试");
    }
}
